import React, { Component } from 'react'
import classNames from 'classnames/bind';
import './style.css'
import {
  DivWrap
} from './StyledClass'

const styles = {
  color: 'red'
}

let cx = classNames.bind(styles)

export default class ClassStyle extends Component {
  render() {
    let className = cx({
      italic: true,
      title: false
    })
    return (
      <DivWrap>
        <h1 
          style={styles}
          className={className}
        >标题一</h1>
      </DivWrap>
    )
  }
}
